package com.shen.GOF.prototype;

import java.util.Date;

public class Client2 {
    public static void main(String[] args) throws CloneNotSupportedException {
        Date date = new Date();
        //原型
        Video2 video = new Video2("bin",date );
        System.out.println("v1 " + video);

        //克隆
        Video2 clone = (Video2) video.clone();
        System.out.println("v2 " + clone);
        System.out.println("===========");
        date.setTime(222222);
        System.out.println(video);
        System.out.println(clone);
    }
}
